<?php echo '<?xml version="1.0" encoding="utf-8" ?>' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sk" lang="sk">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta name="description" content=""/>
        <meta name="author" content="ProjectTeam"/>
        <title><?=$title?></title>
        <link rel="stylesheet" href="<?=base_url()?>public/css/style.css"/>
        <link href="<?=base_url()?>public/css/bootstrap.css" rel="stylesheet"/>
        <link href="<?=base_url()?>public/css/bootstrap-responsive.css" rel="stylesheet"/>
        <script type="text/javascript" src="<?=base_url()?>public/js/jquery.js"></script>   
    </head>

    <body>

        <div id="top_wrapper">
            <div id="title_wrapper">
                <?php if (!$this->user->isLogged()) { ?>
                    <div id="login_bg">

                        <form action="<?=base_url()?>auth/log_in" method="post" accept-charset="utf-8" name="login_form" id="login_form">
                            <input class="input-medium" style="width:165px !important;" type="text" name="username" value="<?= set_value('username') ?>" id="username" placeholder="Váš Login"/>
                            <input class="input-medium clearAll"  style="width:165px; !important;" type="password" name="password" value="<?= set_value('password') ?>" id="password" placeholder="Heslo"/>
                            <input type="submit" name="Submit" value="Prihlásiť" class="btn btn-success " style="height:2em; margin-top:5px; width:179px;">

                        </form>
                    </div>
                    <div id="title"></div>
                <?php } else { ?>
                    <div id="logout_bg">
                        <form action="<?=base_url()?>auth/log_out" method="post" accept-charset="utf-8" name="logout_form" id="logout_form">
                            <input type="submit" name="Submit" value="Odhlásiť" class="btn btn-success" style="height:2em; margin-top:5px;">
                        </form>

                    </div>

                    <div id="title"></div>

                    <div id="basic_navig">
                        <ul>
                            <li><a class="first" href="<?=base_url()?>structure_managment">Manažment štruktúry</a></li>
                            <li><a href="<?=base_url()?>auth/pass_change">Zmena hesla</a></li>
                            <li><a href="<?=base_url()?>auth/upload_pass_change">Zmena hesla súborov</a></li>
                            <li><a href="<?=base_url()?>data">Export/Import</a></li>
                            <div class="mycleaner"></div>
                        </ul>
                    </div>
                <?php } ?>
                <div class="mycleaner"></div>
                <div id="navig">
                    <ul>
                        <li><a class="first" href="<?php echo base_url(); ?>">Home</a></li>
                        <li><a href="<?=base_url()?>programs_managment/index">Vyhľadávanie programov</a></li>
                        <li><a href="<?=base_url()?>programs_managment/new_program">Pridanie nového programu</a></li>
                        <div class="mycleaner"></div>
                    </ul>
                </div>
            </div>
        </div> 
        <div id="wrapper">
            <div id="content_bg_line"></div>
            <div id="content">